#pragma once

#include "Block.h"
#include "WayBlock.h"
#include "NyEnum.h"

class ColorBlock : public Block
{
public:	
protected:
	Color _color;
	WayBlock* _wayBlock;
protected:
	ColorBlock(void);
	~ColorBlock(void);
	void setWayBlock(WayBlock* wb);
	virtual void crashSufferBlock(Block* b);
	Color getColor(){return _color;}
};

class RedBlock : public ColorBlock
{
public:
	RedBlock();
};

class GreenBlock : public ColorBlock
{
public:
	GreenBlock();
};

class BlueBlock : public ColorBlock
{
public:
	BlueBlock();
};

class YellowBlock : public ColorBlock
{
public:
	YellowBlock();
};
